package com.sunday.common.trace.skywalking.study.dubbo.dto;

import com.sunday.common.core.gson.GsonUtils;
import com.sunday.common.core.remoting.base.page.PageDTO;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class PageUserRoleReqDTO extends PageDTO {

    public PageUserRoleReqDTO(long current, long pageSize) {
        super(current, pageSize);
    }

    private Long id;

    private Long userId;

    private Long roleId;

    private LocalDateTime createTime;

    public static PageUserRoleReqDTO of(long current, long pageSize) {
        return new PageUserRoleReqDTO(current, pageSize);
    }

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
